package com.ruoyi.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.excel.annotation.ExcelDictFormat;
import com.ruoyi.common.excel.convert.ExcelDictConvert;
import com.ruoyi.common.translation.annotation.Translation;
import com.ruoyi.common.translation.constant.TransConstant;
import lombok.Data;
import java.util.Date;
import java.io.Serializable;


/**
 * 工单处理记录视图对象
 *
 * @author ruoyi
 * @date 2024-04-08
 */
@Data
@ExcelIgnoreUnannotated
public class HnWorkOrderActionVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    private String name;

    /**
     * 部门id
     */
    @ExcelProperty(value = "部门id")
    private Long deptId;

    /**
     * 部门名称
     */
    @Translation(type = TransConstant.DEPT_ID_TO_NAME,mapper = "deptId")
    @ExcelProperty(value = "部门名称")
    private String deptName;

    /**
     * 工单处理状态
     */
    @ExcelProperty(value = "工单处理状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "hn_work_status")
    private Long status;

    /**
     * 工单处理描述
     */
    @ExcelProperty(value = "工单处理描述")
    private String info;

    /**
     * 描述资源图片组
     */
    @ExcelProperty(value = "描述资源图片组")
    private String ossIds;

    /**
     * 描述资源图片组urls
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL,mapper = "ossIds")
    @ExcelProperty(value = "描述资源图片组urls")
    private String ossUrls;

    /**
     * 处理人id
     */
    @ExcelProperty(value = "处理人id")
    private Long troubleshootUserId;

    /**
     * 处理人名字
     */
    @Translation(type = TransConstant.USER_ID_TO_NAME,mapper = "troubleshootUserId")
    @ExcelProperty(value = "处理人名字")
    private String troubleshootUserName;

    /**
     * 工单id
     */
    @ExcelProperty(value = "工单id")
    private Long workId;

    /**
     * 工单名
     */
    @Translation(type = TransConstant.WORK_ID_TO_NAME,mapper = "workId")
    @ExcelProperty(value = "工单名")
    private String workName;

}
